package org.jeecg.modules.rental.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.rental.entity.RentalAccountPackage;

import java.util.List;


/**
 * @Description: 账户(客户)套餐
 * @Author: sean
 * @Date:   2024-06-17
 * @Version: V1.0
 */
public interface RentalAccountPackageMapper extends BaseMapper<RentalAccountPackage> {

    List<RentalAccountPackage> effectivePackages(@Param("ew") QueryWrapper<RentalAccountPackage> ew);

    Page<RentalAccountPackage> selectJoinPage(@Param("page") Page page, @Param(Constants.WRAPPER) Wrapper wrapper);

    RentalAccountPackage curPkgByCarId(@Param("ew") QueryWrapper<RentalAccountPackage> ew);
}
